Polling Eeciently on Stock Hardware
نویسنده
چکیده
Two strategies for supporting asynchronous interrupts are: the use of the processor's hardware interrupt system and the use of polling. The advantages of polling include: portabil-ity, simplicity, and low cost for handling interrupts. Unfortunately , polling has an overhead for the explicit interrupt checks inserted in the code. This paper describes balanced polling, a method for placing the interrupt checks which has a low overhead and also guarantees an upper bound on interrupt latency. This method has been used by Gambit (an optimizing native code compiler for Scheme) to support a number of features including multiprocessing and stack overrow detection. The overhead of balanced polling is less than for call-return polling which places interrupt checks at every procedure entry and exit. The overhead of call-return polling is typically 70% larger (but sometimes over 400% larger) than the overhead of balanced polling. 1 Introduction In this paper, the term interrupt is deened as an exceptional event for which some special processing is needed (e.g. a heap overrow). The handling of an interrupt is done in three phases. The interrupt is raised when the event occurs. At some point after this the processor detects the interrupt and then handles it by invoking the appropriate interrupt handler. There are two types of interrupts. Synchronous interrupts can only be raised at well deened locations in the code (e.g. an arithmetic overrow or invalid pointer derefer-ence). Asynchronous interrupts can be raised at any location (e.g. a timer or user interrupt).
منابع مشابه
Polling-based Real-time Software for MPEG2 System Protocol LSIs
| This paper proposes polling-based realtime software for MPEG2 System protocol LSIs, which is a typical embedded and real-time system on a chip, and demonstrates its performance and usefulness. The polling-based real-time software is designed and optimized by analyzing application speci c function requirements and deciding scheduling intervals and the execution cycles of each task. It requires...
متن کاملAnalysis and Optimization of Polling Systems
The basic polling system is a system of multiple queues, attended to by a single server in a cyclic order. Polling systems arise naturally in the modelling of many communication, computer and production networks where several users compete for access to a common resource. Such applications also give rise to several variants of the basic polling system, like periodic polling; here the server vis...
متن کاملManaging Modems by Periodic Polling
Network management and network monitoring technologies frequently rely on periodic SNMP polling of target devices to obtain statistical information for later reduction and analysis. Periodic polling has been applied to virtually every type of network device capable of supporting an SNMP agent, including probes, routers, switches, and servers. This paper examines the extension of periodic pollin...
متن کاملAn Event-Driven Sensor Architecture for Low Power Wearables
In this paper we define a software architecture for low power wearable computers. The architecture is event driven, and is designed so that application programs have access to sensor data without the need for polling. The software architecture is designed to allow for an underlying hardware architecture that can achieve maximal power efficiency by switching off parts of the hardware that are kn...
متن کاملHyperstrictness and the Parallel Evaluation of Lazy Functional Programs
Strictness analysis can be used for automatic parallelization of lazy functional programs while preserving their semantics (and termination properties, in particular). This paper considers ways of exploiting strictness analysis in implementing functional languages eeciently on stock parallel hardware. A strictness{based parallel evaluation model is presented, and is compared with the more gener...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1993